<!--填报课程考核实施计划-->
<template>
  <div class="assessment-container">
    <div class="search-container">
      <div class="search-container-left">
        <div class="search-container-item">
          <span>学期：</span>
          <el-select
            v-model="xq"
            style="width: 90px"
            size="mini"
            placeholder="请选择"
          >
            <el-option
              v-for="item in xqList"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div class="search-button">
          <img src="../../../assets/assessment/icon-search.png" alt=""/>
          <span>查询</span>
        </div>
      </div>
    </div>
    <div class="plan-entry-table-container">
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        class="table-data"
        row-class-name="row-class"
        cell-class-name="cell-class"
        header-row-class-name="header-row-class"
        header-cell-class-name="header-cell-class"
      >
        <el-table-column prop="cz" label="查看" width="81" align="center">
          <template slot-scope="scope">
            <div class="search-button">
              <img src="../../../assets/assessment/icon-search.png" alt=""/>
              <span>查询</span>
            </div>
          </template>
        </el-table-column>
        <el-table-column prop="zt" label="状态" width="88" align="center">
          <template slot-scope="scope">
            <template v-if="scope.$index === 0">
              <div class="pass-text">已通过</div>
              <div class="watch-button">查看<br/>审核意见</div>
            </template>
            <template v-else>
              <div class="wait-text">待审核</div>
            </template>
          </template>
        </el-table-column>
        <el-table-column
          prop="kcmc"
          label="课程名称"
          width="120"
          align="center"
        >
        </el-table-column>
        <el-table-column prop="jxb" label="教学班" width="133" align="center">
        </el-table-column>
        <el-table-column prop="jxxz" label="课程性质" width="44" align="center">
        </el-table-column>
        <el-table-column prop="jxdx" label="教学对象" width="47" align="center">
        </el-table-column>
        <el-table-column
          prop="sjskrs"
          label="实际上课人数"
          width="56"
          align="center"
        >
        </el-table-column>
        <el-table-column prop="skjy" label="授课教员" width="79" align="center">
        </el-table-column>
        <el-table-column prop="jys" label="教研室" width="161" align="center">
        </el-table-column>
        <el-table-column prop="zc" label="职称" width="61" align="center">
        </el-table-column>
        <el-table-column
          prop="gzc"
          label="高/中/初职"
          width="88"
          align="center"
        >
        </el-table-column>
        <el-table-column prop="cdrw" label="承担任务" width="90" align="center">
        </el-table-column>
        <el-table-column prop="ss" label="实装/实弹" width="99" align="center">
        </el-table-column>
        <el-table-column
          prop="zbmc"
          label="装备名称/型号"
          width="163"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="sjll"
          label="实际理论讲授课时"
          width="77"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="sjsj"
          label="实际实践讲授课时"
          width="79"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="sjks"
          label="实际合计课   时"
          align="center"
          width="76"
        >
        </el-table-column>
        <el-table-column
          prop="sjzsxs"
          label="实际折算系  数"
          align="center"
          width="76"
        >
        </el-table-column>
        <el-table-column prop="ksl" label="课时量" align="center" width="61">
        </el-table-column>
        <el-table-column prop="ksbz" label="课时标准" align="center" width="81">
        </el-table-column>
        <el-table-column prop="bz" label="备注" align="center">
        </el-table-column>
      </el-table>
    </div>
    <div class="bottom-block">
      <div class="text">授课教员名字后加“*”为课程负责人</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      xq: "2020春",
      xqList: [
        {
          value: "2020春",
          label: "2020春",
        },
        {
          value: "2020夏",
          label: "2020夏",
        },
      ],
      tableData: [
        {
          zt: "已通过",
          kcmc: "名称一",
          jxb: "教学一班",
          jxxz: "必修",
          jxdx: "本科",
          sjskrs: "20人",
          skjy: "李某某",
          jys: "教研室一一一",
          zc: "讲师",
          gzc: "中职",
          cdrw: "课程主讲",
          ss: "实弹",
          zbmc: "名称56248622",
          sjll: "15",
          sjsj: "30",
          sjks: "30",
          sjzsxs: "50",
          ksl: "21",
          ksbz: "21",
          bz: "",
        },
        {
          zt: "已通过",
          kcmc: "名称一",
          jxb: "教学一班",
          jxxz: "必修",
          jxdx: "本科",
          sjskrs: "20人",
          skjy: "李某某",
          jys: "教研室一一一",
          zc: "讲师",
          gzc: "中职",
          cdrw: "课程主讲",
          ss: "实弹",
          zbmc: "名称56248622",
          sjll: "15",
          sjsj: "30",
          sjks: "30",
          sjzsxs: "50",
          ksl: "21",
          ksbz: "21",
          bz: "",
        },
      ],
    };
  },
  methods: {},
};
</script>
<style lang="less" scoped>
.plan-entry-table-container {
  margin-top: 30px;

  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 82px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .el-table th.el-table__cell > .cell {
    padding: 0;
  }

  .el-table .cell,
  .el-table--border .el-table__cell:first-child .cell {
    padding: 0;
  }

  .el-table__body td .cell {
    padding: 0;
  }

  .search-button {
    margin: 0 auto;
    cursor: pointer;
    background: #f1f8fe;
    border: 1px solid #51aef6;
    width: 65px;
    height: 28px;
    line-height: 28px;
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    > span {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #51aef6;
    }

    > img {
      width: 18px;
      height: 18px;
      margin-right: 7px;
    }
  }

  .pass-text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }

  .wait-text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #ff3819;
  }

  .watch-button {
    width: 76px;
    height: 36px;
    background: #fef1e8;
    border: 1px solid #f86900;
    border-radius: 6px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #f86900;
    line-height: 16px;
    margin: 2px auto;
  }
}
</style>

<style lang="less" scoped>
.assessment-container {
  width: 1875px;
  margin: 0 auto;

  .search-container {
    margin-top: 27px;
    padding-left: 43px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    .search-container-left,
    .search-container-right {
      display: flex;
      flex-direction: row;
    }

    .search-container-item {
      color: #004ca7;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      margin-right: 30px;

      > span {
        margin-right: 6px;
      }
    }

    .search-button {
      width: 77px;
      height: 28px;
      line-height: 28px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;

      > span {
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #51aef6;
      }

      > img {
        width: 20px;
        height: 20px;
        margin-right: 4px;
      }
    }
  }

  .bottom-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    .text {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      line-height: 39px;
      color: #004ca7;
    }
  }

  .plan-entry-table-container {
    margin-top: 30px;

    .table-data {
      width: 100%;
      border: 0.8px solid #004ca7;
      border-radius: 9px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #004ca7;
    }
  }
}
</style>
